/*****
  $VER: RecentScript MailManager PlugIn 0.3 (18.4.98) ©Eugene Stepanoff

        RecentScript PlugIn for email reader MailManager.

  Starts the MUIRexx application 'RecentScript' within
  MailManager.

  Based on MM_UserInfo by Erik Børsting & Kasper B. Graversen
  Changed (V0.3) by Arndt van der Molen: Added stacksize primitive

  Installation:

  Add following line to the browse menu

  #BROWSEMENU "RecentScript" "rx MUIRexx:RecentScript/Plugins/RecentScript.mm %a %n" ""
*****/

address mailmanager
parse arg tagname msgno
mm_readmsg '"'tagname'"' msgno aminet
if rc = 4 then call error
mm_writestem 'T:RS.temp' aminet.text

PRAGMA("STACK", 15000)

address command 'MUIRexx:MUIRexx "MUIRexx:RecentScript/RecentScript.rexx T:RS.temp" PORT RECENTSCRIPT'
address command 'delete >NIL: T:RS.temp'

exit

error:
mm_requester 'ERROR!' 'Unknown Area or Unknown Message' '*_Ok'
exit
